﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addCourse.aspx.vb" Inherits="DARSClients.addCourse" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Beyond DARS - Add Course</title>
    <script type="text/javascript" src="Scripts/myScripts.js" language="javascript"></script>
    <link id="myCSS" href="Styles/myStyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            font-size: x-large;
        }
        .style5
        {
            width: 176px;
            font-size: 11.0pt;
            line-height: 115%;
        }
        .style3
        {
            width: 176px;
        }
        .style2
        {
            text-align: center;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="style1">
    
                <strong style="color: #003300; width: 746px;" class="title-nav">Add&nbsp; Course</strong></div>
    <br />
    <br />
    <div class="container">
    <table class="content" style="width: 543px">
        <tr>
            <td colspan="2" style="text-align: center">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style5" 
                style="mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
                CourseID:</td>
            <td>
                <asp:TextBox ID="txtCourseID" runat="server" Width="235px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style3" style="font-size: 11pt">
                Course Name:</td>
            <td>
                <asp:TextBox ID="txtCourseName" runat="server" Width="235px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style3" style="font-size: 11pt">
                Course Description: </td>
            <td>
                <asp:TextBox ID="txtDescription" runat="server" Width="235px" Rows="8" 
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5" 
                style="mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
                DepartmentID:</td>
            <td>
                <asp:DropDownList ID="ddlDepartmentID" runat="server" Width="233px" 
                    DataSourceID="SqlDataSource3" DataTextField="DepartmentID" 
                    DataValueField="DepartmentID" AutoPostBack="True">
                </asp:DropDownList>
                &nbsp;<asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:FA11_4296_BeyondDARSConnectionString %>" 
                    SelectCommand="SELECT [DepartmentID] FROM [Department]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style5" 
                style="mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
                Earned Credits:</td>
            <td>
                <asp:TextBox ID="txtEarnedCredits" runat="server" Width="235px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
            <div style="margin:auto;">
                <asp:Button ID="btnAdd" runat="server" Text="Add Course" CssClass="btn2"/>
                <asp:Label ID="lblValidate" runat="server" ForeColor="Red" 
                    style="font-size: medium"></asp:Label>
            </div>
            </td>
        </tr>
    </table>
    </div>
    <br />
    <asp:Label ID="lblNotifucation" runat="server" ForeColor="#003300" 
        style="font-size: large" CssClass="content"></asp:Label>
    <br />
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:FA11_4296_BeyondDARSConnectionString %>" 
        SelectCommand="SELECT [RequirementID] FROM [Requirement]">
    </asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" CssClass="content" 
        CellPadding="4" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <br />
    <asp:Label ID="Label1" runat="server" 
        Text="Assign RequirementID To The Added Course:"></asp:Label>
    <asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="SqlDataSource2" DataTextField="RequirementID" 
        DataValueField="RequirementID">
    </asp:DropDownList>
    <br />
&nbsp;<asp:Button ID="Button1" runat="server" Text="Add" />
    <asp:Label ID="lblNotification2" runat="server"></asp:Label>
    <br />
    <br />
    <asp:GridView ID="gvCourses" runat="server" CssClass="content" 
        CellPadding="4" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <div class="footer">
        <a><input  type="submit" class="text_button" id="btnLogout" runat="server" 
                value="Logout" causesvalidation="False" />
           <input type="submit" class="text_button" id="btnhome" runat="server" 
                value="Home" causesvalidation="False" /> </a>
        </div>
    </form>
</body>
</html>
